package com.jxtc.enterprise.common.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.List;

/**
 * 用于分页展示数据的泛型类
 *
 * @param <T> 展示的数据
 */
@Schema(description = "分页响应数据")
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class PaginationResponseVO<T> {
    @Schema(description = "数据总数量", example = "5")
    private long total;

    @Schema(description = "当前页数", example = "1")
    private long current;

    @Schema(description = "当前页数据")
    private List<T> records;
}
